﻿// See https://aka.ms/new-console-template for more information


using SortGuid.Tool;

Dictionary<DateTime,Guid> dic= new Dictionary<DateTime,Guid>();

for (int i = 0; i < 20; i++)
{
    dic.Add(DateTime.Now, GuidEx.CreateGuid(DbBaseType.PostgreSql));
    Thread.Sleep(100);
}

Console.WriteLine(
    string.Join("\r\n", dic.OrderBy(x => x.Value)
    .Select(item => $"时间：{item.Key.ToString("yyyy-MM-dd HH:mm:ss:ffff")},guid：{item.Value.ToString()}"))
    );